<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>酒店管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入 Bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="row">
    <div class="col-md-12 column">
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toUpdatePassword">修改登录密码</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toCancelUser">注销登录账户</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toactiveUser">激活登录账户</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toaddUser">新增登录账户</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toaddRoom">增加房间</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/todeleteRoom">删除房间</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toupdateRoom">修改房间信息</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/residentMessage">查看住客信息</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toOrderRoom">预定房间</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toaddResident">增加住客信息</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toUpdateResident">修改住客信息</a>
        <br><br>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/tofindResident">查询有无该住客信息</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toCheckOutRoom">退房</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/allHistoryResident">查看历史订单</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/roomCount">查看房间预订次数</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/happy">开启活动</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/overHappy">结束活动</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toIncome">查看一年收益情况</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/quit">退出登录</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/findManager">查看管理员信息</a>
        <a class="btn btn-primary" href="${pageContext.request.contextPath}/hotel/toUpdateManager">修改管理员信息</a>
    </div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    <small align="center">显示所有住房信息(今日酒店管理员:${account})</small>
                </h1>
            </div>
        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped" >
                <thead>
                <tr>
                    <th>房号</th>
                    <th>房间面积</th>
                    <th>房间类型</th>
                    <th>租金</th>
                    <th>房间状态</th>
                </tr>
                </thead>

                <tbody>
                <c:forEach var="room" items="${requestScope.get('list')}">
                    <tr>
                        <td>${room.getRoomId()}</td>
                        <td>${room.getArea()}</td>
                        <td>${room.getRoomType()}</td>
                        <td>${room.getRentMoney()}</td>
                        <td>${room.getStated()}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>